package 结构器模式.装饰者模式;

/**
 * @Description 装饰者类：抽象装饰角色
 * @Author shallow
 * @Date 2023/3/5 16:39
 */

public abstract class Garnish extends FastFood{
    //声明快餐类的变量
    private FastFood fastFood;

    public Garnish(FastFood fastFood, float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
